Release 10.1A: OpenEdge Development:
Progress 4GL Handbook


Making sure you release record locks

Under no circumstances do you want to hold a record lock longer than you need it. The best way to make sure you get the locking you want is to be explicit about it. Do not fall back on Progress defaults, which try to give you reasonable behavior when you don’t specify the behavior you want, but which cannot always anticipate what your procedure really requires. Here are two guidelines for using locks:

If you observe these two simple guidelines, your programming will be greatly simplified and much more reliable. Here are a few rules that you simply don’t need to worry about if you acquire records only within a transaction and always release them when you’re done:


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095